<?php
// +----------------------------------------------------------------------
// | najing [ 通用后台管理系统 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2020 http://www.najingquan.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: lin
// +----------------------------------------------------------------------

namespace app\admin\controller;

use app\common\controller\AdminController;
use app\common\model\Balance as BalanceModel;

use app\common\model\UserTocash;

use think\facade\View;

/**
 * 余额管理
 * Class ArticleType
 * @package app\manage\controller
 */
class Balance extends AdminController
{
    /**
     * 余额列表
     * @author lin
     */
    public function index()
    {
        $user_id = input('user_id','');
        if($this->request->isAjax()) {
            $data = input('param.');
            $balanceModel = new BalanceModel();
            $result = $balanceModel->tableData($data);
            return  $result;
        }else{
            View::assign('user_id',$user_id);
            return View::fetch();
        }
    }

}